# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit mono

IUSE=""
MY_PN="Indexator.NET"
DESCRIPTION=" This application is able to index directories and store information about the files found in a MySQL Database associating it with labels."
HOMEPAGE="http://www.marblestation.com/aplicaciones/indexator.net.php"
SRC_URI="http://www.marblestation.com/aplicaciones/downloads/${MY_PN}-${PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc -sparc ~alpha"
S=${WORKDIR}/${MY_PN}-${PV}
DEPEND=">=dev-lang/mono-1.0"

src_compile() {
	MONO_PATH=${S} emake -j1 || die
}

src_install() {
	MONO_PATH=${S} make DESTDIR=${D} install || die
	cd bin
	dobin *.exe 
	dolib *.dll
	dodir etc
	mv *.xml ${D}/etc
	dodir lib/indexator.net
	mv web/ ${D}/lib/indexator.net/
	mv gindexing.net.glade ${D}/lib/indexator.net/


}
